cody - HTMLify profile

cody
4270 Files
632074 Views
Latest files of /cody/vishal-dcode/Button Ripple Effect
// Select all the elements with class "ripple"
const buttons = document.querySelectorAll(".ripple");
// Add an event listener to each button
buttons.forEach((button) => {
button.addEventListener("click", function (e) {
// Get the x and y coordinates of the click event
const x = e.clientX;
const buttons = document.querySelectorAll(".ripple");
// Add an event listener to each button
buttons.forEach((button) => {
button.addEventListener("click", function (e) {
// Get the x and y coordinates of the click event
const x = e.clientX;
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<link
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<link